package com.ssy.lingxi.platform.template.api.feign.inner;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.template.api.hystrix.inner.CategoryWebInnerHystrix;
import com.ssy.lingxi.platform.template.api.model.dto.inner.CategorySortDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * web - 平台品类(内部接口)
 *
 * @author lqa
 * @version 2.0.0
 * @date 2022/1/6
 */
@FeignClient(value = "platform-template-service", fallback = CategoryWebInnerHystrix.class)
public interface CategoryWebInnerControllerFeign {
    /**
     * 更新品类排序
     *
     * @param dto 请求参数
     * @return 无返回
     */
    @PostMapping("/template/inner/web/categoryWeb/updateCategory/updateCategorySort")
    Wrapper<Void> updateCategorySort(@RequestBody @Valid CategorySortDTO dto);
}
